package com.qumitech.visualnovel.model.dto.updatecfg;

import com.alibaba.fastjson.annotation.JSONField;
import com.qumitech.visualnovel.model.dao.editor.BookDAO;
import lombok.Data;

@Data
public class BookOptionDTO {
    @JSONField(name = "book_id")
    private Integer bookId;

    @JSONField(name = "book_title")
    private String bookTitle;

    public BookOptionDTO() {
    }

    public BookOptionDTO(BookDAO bookDAO) {
        setBookId(bookDAO.getId().intValue());
        setBookTitle(bookDAO.getTitle());
    }
}
